package com.ht.medicaltreatment.activity

import android.view.View
import com.gym.baselib.base.BaseActivity
import com.ht.medicaltreatment.R
import kotlinx.android.synthetic.main.activity_sample_receive_layout.*


class SampleReceiveActivity : BaseActivity(), View.OnClickListener {
    override fun getLayoutId() = R.layout.activity_sample_receive_layout

    override fun init() {
        setTitle("样本接收")

        initClick()
    }

    private fun initClick() {
        btnStart.setOnClickListener(this)
        imgFormRecord.setOnClickListener(this)
        tvRecord.setOnClickListener(this)
    }

    override fun onClick(v: View?) {
        when(v){
            //开始识别
            btnStart -> startActivity(SampleReceiveListActivity::class.java)
            //表单记录
            tvRecord,imgFormRecord -> startActivity(SampleRecordActivity::class.java)
        }
    }
}